<html>
<head>
<script>
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>繳費資料重新取得</title>
</head>
<body onload="enableBankid(document.forms[0].paymenttype,document.forms[0].bankid);">
<form method="POST" action="./regetorder.php">
<center>
<table border=1 cellpadding=0 cellspacing=0 bordercolor="#dddddd" width="650">
     <tr>
          <td>商家編號</td>
          <td><input type="text" name="merchantnumber"></td>
     </tr>
     <tr>
          <td>訂單編號</td>
          <td><input type="text" name="ordernumber"></td>
     </tr>
     <tr>
          <td>付款方式</td>
          <td>
               <select name="paymenttype" onChange="enableBankid(this,this.form.bankid)">
                    <option value="MMK" selected>7-11 ibon / 全家FamiPort 繳款 / 萊爾富Life-ET / OK超商ok-go 繳款</option>
                    <option value="ATM">虛擬帳號轉帳</option>
                    <option value="CS">超商代收</option>
               </select>
               <select name="bankid" disabled>
                    <option value="007" selected>第一銀行</option>
               </select>
          </td>
     </tr>
     <tr>
          <td>金額</td>
          <td><input type="text" name="amount"></td>
     </tr>
     <tr>
          <td>是否直接回傳資料</td>
          <td><input type="checkbox" name="returnvalue" value="1"></td>
     </tr>
     <tr>
          <td colspan=2><input type="submit" value=" 送 出 "></td>
     </tr>
</table>
</center>
</form>
</body>
</html>
<script>
     function enableBankid(obj1,obj2){
          if(obj1.selectedIndex==1 || obj1.selectedIndex==2) obj2.disabled = false;
          else obj2.disabled = true;
     }
</script>